<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if(isset($errorTitle)) echo $errorTitle?></title>
<base href="<?php echo base_url();?>" />
<link rel="stylesheet" type="text/css"  href="<?php echo base_url();?>template/admin/default/css/public.css"/>
<script type="text/javascript" src="<?php echo base_url();?>template/admin/default/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>template/admin/default/js/psufool.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>template/admin/default/js/shieldMouse.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>template/admin/default/js/lhgdialog/lhgdialog.min.js?s=default"></script>
<script type="text/javascript">
try{
	var dg = frameElement.lhgDG;
}catch(e){
	
}
</script>
</head>

<body>
<div class="container"><?php if(isset($errorMsg)) echo $errorMsg;?></div>
</body>
</html>
<script type="text/javascript">
<?php
$returnValue = "";
if(isset($errorScript)){
	if(is_array($errorScript)){
		if(array_key_exists('lhgdialog_alert_mess',$errorScript)){
			/**
			 * js 美化弹出窗口
			 * @param $width		宽度
			 * @param $height		高度
			 * @param $title		标题
			 * @param $content		内容
			 * @param $url			单击按钮后跳转地址
			 * @param $target		单击按钮后跳转地址打开目标
			 * @param $conver		是否遮挡父窗口，默认不遮挡	
			 * @param $resize		是否允许改变窗口大小，默认不允许改变大小
			 * @param $drag			是否允许移动窗口位置，默认不允许移动
			 * @param $btns			是否显示按钮，默认不显示
			 * @param $btnText		按扭上的文字
			 * @param $rightClose	是否显示右上角关闭按钮
			 */
			
			$returnValue = "var alertObj = ".json_encode($errorScript['lhgdialog_alert_mess']).";
var lockedScoll = false;
if($.browser.msie){
	var lockedScoll = true;
}else if($.browser.mozilla){
	var lockedScoll = false;
}
var alertMess = new dg.curWin.$.dialog({
	id:'alertMess',
	width:alertObj.width,
	height:alertObj.height,
	parent:dg,
	cover: true,
	iconTitle:false,
	xButton:alertObj.rightClose,
	resize:false,
	rang:true,
	maxBtn:false,	
	lockScroll:lockedScoll,
	cancelBtnTxt:alertObj.btnText,
	onCancel:function(){
		if(alertObj.url.indexOf('history.')>0 || alertObj.url.substr(0,'history.'.length)=='history.'){
			history.back();
		}else if(alertObj.url.indexOf('location.reload')>0 || alertObj.url.substr(0,'location.reload'.length)=='location.reload'){
			dg.curWin.location.reload();
			dg.cancel();
		}else{
			gotoLocation(alertObj.url,alertObj.target);
			dg.cancel();
		}		
	},
	title:alertObj.title,
	html:'<p class=\"mess-detail\">' + alertObj.content + '</p>'
});
alertMess.ShowDialog();\n";
			echo $returnValue;				
		}else if(array_key_exists('lhgdialog_alert_mess_top',$errorScript)){
			$returnValue = "var alertObj = ".json_encode($errorScript['lhgdialog_alert_mess_top']).";\n
var alertMessHeight = alertObj.height;
if($.browser.msie){
	var alertMessHeight = alertObj.height;
	var lockedScoll = true;
}else if($.browser.mozilla){
	var alertMessHeight = alertObj.height - 65;
	var lockedScoll = false;
}else{
	var alertMessHeight = alertObj.height - 1;
}
var alertMess = new $.dialog({
	id:'alertMess',
	width:alertObj.width,
	height:alertMessHeight,
	cover:alertObj.conver,
	resize:alertObj.resize,
	drag:alertObj.drag,
	xButton:alertObj.rightClose,
	iconTitle:false,
	rang:true,
	maxBtn:false,
	lockScroll:lockedScoll,
	autoPos:{left:'center',top:'center'},
	cancelBtnTxt:alertObj.btnText,
	onCancel:function(){		
		if(alertObj.url.indexOf('history.')>0 || alertObj.url.substr(0,'history.'.length)=='history.'){
			history.back();
		}else if(alertObj.url.indexOf('location.reload')>0 || alertObj.url.substr(0,'location.reload'.length)=='location.reload'){
			dg.curWin.location.reload();
			dg.cancel();
		}else{
			gotoLocation(alertObj.url,alertObj.target);
			dg.cancel();
		}
	},
	title:alertObj.title,
	html:'<p class=\"mess-detail\">' + alertObj.content + '</p>'
});
alertMess.ShowDialog();\n";
			echo $returnValue;
		}	
	}
}
?>
</script>
